package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.ShareView
import hlhj.fhp.checkpoint.javaBean.ShareBean
import hlhj.fhp.checkpoint.module.ShareModule

/**
 * Created by Never Fear   on 2018\11\13 0013.
Never More....
 */
class SharePresenter :BasePresenter<ShareModule,ShareView>(), ShareModule.ShareListener {
    fun getSharelist(type:Int,page:Int,level:Int,c:Context){
        module?.getShare(type, page, level,c)
    }
    override fun getShareResp(shareBean: ShareBean) {
        view?.setShare(shareBean)
    }

    override fun createModule() {
        module=ShareModule()
        module?.listener=this
    }
}